package com.plm.blogs.dao;

import com.plm.blogs.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
public interface UserDao {

    void add(User user);

    void delete(String id);

    void updateById(User user);

    List<User> query();

    User findById(String id);

    User findByUsername(String username);

    User findByPhone(String phone);

    User findByEmail(String email);
}
